/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zhongyisheng
 * Date: 2025-05-20
 * Time: 21:50
 */
public class Test {

    public static void main(String[] args) {
        Integer a = 127;
        Integer b = 127;
        System.out.println( a== b);

        Integer c = 128;
        Integer d = 128;
        System.out.println( c== d);
    }
    public static void main3(String[] args) {
        Integer a = 100;
        Integer b = 100;
        System.out.println( a== b);

        Integer c = 200;
        Integer d = 200;
        System.out.println( c== d);
    }

    public static void main2(String[] args) {
        Integer a = 10;
        int b = a;//拆箱
        int c = a.intValue();

        double d = a.doubleValue();
    }

    public static void main1(String[] args) {
        int a = 10;
        Integer i = Integer.valueOf(a); //装箱
        Integer i2 =10;

        double d = Double.valueOf(a);

        System.out.println(i);
        System.out.println(i2);

    }
}
